package com.mvc.security.model;

import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

import com.mvc.framework.model.CommonAuditableEntity;
@Entity(name="F_SERVER")
public class Server extends CommonAuditableEntity {
	public static final int APP_TYPE_J2EE = 1;
	@NotNull
	private String name;
	@NotNull
	private String context;
	private Integer type = APP_TYPE_J2EE;
	@NotNull
	private Integer port;
	/**
	 * 域名
	 */
	private String domain;
	private Integer status;
	private String message;
	private String ip;
	
	public String getName() {
    	return name;
    }
	public void setName(String name) {
    	this.name = name;
    }
	public Integer getPort() {
    	return port;
    }
	public void setPort(Integer port) {
    	this.port = port;
    }
	public String getDomain() {
    	return domain;
    }
	public void setDomain(String domain) {
    	this.domain = domain;
    }
	public Integer getStatus() {
    	return status;
    }
	public void setStatus(Integer status) {
    	this.status = status;
    }
	public String getMessage() {
    	return message;
    }
	public void setMessage(String message) {
    	this.message = message;
    }
	public String getIp() {
    	return ip;
    }
	public void setIp(String ip) {
    	this.ip = ip;
    }
	public String getContext() {
    	return context;
    }
	public void setContext(String context) {
    	this.context = context;
    }
	public Integer getType() {
    	return type;
    }
	public void setType(Integer type) {
    	this.type = type;
    }
}
